/*
 * Copyright 2016. chenshufei
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package sz.szsmk.citizencard.model.network.dzbean.res;

/**
 * <br /> author: chenshufei
 * <br /> date: 16/1/18
 * <br /> email: chenshufei2@sina.com
 */
public class MessageEvent {



    private int code;
    private String message;
    private Object data;


    public static final int CODE_REGISTER_SUCCESS = 1000;
    public static final int CODE_LOGOUT_SUCCESS = 1001;
    public static final int CODE_UNLOGIN = 1002;

    public static final int CODE_BIND_BANK_CARD_SUCCESS = 90001;
    public static final int CODE_UPDATE_USERINFO_SUCCESS = 90001;
    public static final int CODE_UPDATE_BALANCE_SUCCESS = 90002;
    public static final int TO_DZSMK = 80000;
    public static final int TO_GOVER = 80002;
    public static final int TO_SETSTART = 80003;
    public static final int TO_SETEND = 80004;
    public static final int TO_SMRZ = 80001;
    public static final int CODE_PASSWORD = 90003;
    public static final int CODE_REFRESH = 90004;
    public static final int CODE_REFRESH_CODE = 90005;
    public static final int CODE_REAL_NAME_CODE = 90006;
    public static final int CODE_GESTURE_OPEN = 90007;
    public static final int CODE_GESTURE_SETTING = 90008;
    public static final int CODE_EDIT_ALL = 90010;

    public static final int CODE_LOCTION = 101;
    public static final int CODE_USERBEHAVIOR  = 90009;

    public static final int CODE_USERACTIVITY = 90008;

    //跳转 NG
    public static final int CODE_OPENNG =  900009;

    //我的钱包
    public static final int CODE_WALLET =  900008;

    //联创好生活授权
    public static final int CODE_LIFEAUTH =  900007;


    public static final int CODE_GESTURESUCCESS =  908;
    public static final int CODE_GESTURECLOSE =  907;
    public static final int CODE_SHOW_DIALOG =909;
    public static final int CODE_DISSMISS_DIALOG = 910;
    public static final int CODE_HIDE = 911;//隐藏导航栏 标题栏
    public static final int CODE_SHOW = 912;//显示导航栏 标题栏

    //token 异常      发消息到主界面
    public static final int CODE_TOKEN_ERROR = 10002;
    //公积金 桂花分 社保
    public static final int CODE_GJJ_GHF_SB = 10003;
    //跳转  电子市民卡
    public static final int CODE_JUMP_DZSMK = 10004;

    public MessageEvent(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public MessageEvent(int code) {
        this.code = code;
        this.message = "";
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

    @Override
    public String toString() {
        return "MessageEvent{" +
                "code=" + code +
                ", message='" + message + '\'' +
                '}';
    }
}
